package com.xsomnus.mc.kafka.consumer2.controller;

import com.xsomnus.mc.kafka.consumer2.components.KafkaProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 003387_xiawenye
 * @since 2019/10/28 18:50:51
 */
@RestController
public class KafkaTestController {


    @Autowired
    private KafkaProducer producer;

    @RequestMapping("/send")
    @ResponseBody
    public String testSendMsg(){
        producer.send();
        return "success";
    }

}
